// import { ref, computed } from "vue"
import { defineStore } from "pinia"
// import storage from "@/utils/storage"
export const usePermissionStore = defineStore("permission", () => {
  const permission = ref<any[]>([])
  const crouter = ref<any[]>([])
  const setPermission = (data: any[]) => {
    permission.value = data
  }
  const setCrouter = (data: any[]) => {
    crouter.value = data
  }
  return { permission, setPermission, setCrouter, crouter }
})
